package com.reptile.service.execute;

import com.reptile.constant.YsReptileConstant;
import com.reptile.service.BaseExecute;
import com.reptile.util.HttpClientDownPage;
import com.reptile.util.PictureInfoDataUtil;
import org.jsoup.Jsoup;
import java.util.List;

/**
 * 搜狗爬取方法实现
 */
public class SouGoPicExecute implements BaseExecute {


    @Override
    public List baseExecute() {
        String text = HttpClientDownPage.sendGet(YsReptileConstant.SO_GOU_PIC);
        return PictureInfoDataUtil.SoGouPicParseList(Jsoup.parse(text));
    }

    @Override
    public List baseExecute(Object data) {
        return null;
    }
}
